home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Palettes / PSAction / PSAction.h_3.0 < prev    next >
Text File  |  1995-06-12  |  1KB  |  78 lines

  1. /* PSAction Object -- copyright 1993, 1994 by C.D.Lane */
  2.  
  3. #import <appkit/appkit.h>
  4.  
  5. @interface PSAction : Object
  6. {
  7.     id script;
  8.     id target;
  9.     id errors;
  10.     id view;
  11.  
  12.     char *contents;
  13.     Window *cache;
  14.     NXRect bounds;
  15.     struct _flags {
  16.         unsigned int disabled:1;
  17.         unsigned int dontClearCache:1;
  18.         unsigned int dontReportError:1;
  19.         } flags;
  20. }
  21.  
  22. - init;
  23. - free;
  24.  
  25. - (BOOL) isEnabled;
  26. - setEnabled:(BOOL) flag;
  27.  
  28. - (BOOL) isCacheCleared;
  29. - setCacheCleared:(BOOL) flag;
  30.  
  31. - (BOOL) isErrorReported;
  32. - setErrorReported:(BOOL) flag;
  33.  
  34. - script;
  35. - setScript:anObject;
  36.  
  37. - target;
  38. - setTarget:anObject;
  39.  
  40. - errors;
  41. - setErrors:anObject;
  42.  
  43. - view;
  44. - setView:anObject;
  45.  
  46. - (int) intValue;
  47. - takeIntValueFrom:sender;
  48. - setIntValue:(int) anInt;
  49. - integertype;
  50. - booleantype;
  51.  
  52. - (const char *) stringValue;
  53. - takeStringValueFrom:sender;
  54. - setStringValue:(const char *) aString;
  55. - stringtype;
  56. - nametype;
  57.  
  58. - (float) floatValue;
  59. - takeFloatValueFrom:sender;
  60. - setFloatValue:(float) aFloat;
  61. - realtype;
  62.  
  63. - (double) doubleValue;
  64. - takeDoubleValueFrom:sender;
  65. - setDoubleValue:(double) aDouble;
  66.  
  67. - read:(NXTypedStream *) stream;
  68. - write:(NXTypedStream *) stream;
  69.  
  70. - (NXImage *) getIBImage;
  71. - (const char *) getInspectorClassName;
  72.  
  73. - printf:(const char *) format, ...;
  74. - scriptError:(NXHandler *) error;
  75. - executeScript;
  76.  
  77. @end
  78.